package Test;

//~--- non-JDK imports --------------------------------------------------------

import org.objectweb.fractal.api.control.BindingController;

public class AImpl implements Begin, BindingController {
    private Go go;

    public void beginTest(String args) throws InterruptedException {
        go.go("AA" + args);
    }

    public String[] listFc() {
        return new String[] { "r" };
    }

    public Object lookupFc(String cItf) {
        if (cItf.equals("r")) {
            return go;
        }

        return null;
    }

    public void bindFc(String cItf, Object sItf) {
        if (cItf.equals("r")) {
            go = (Go) sItf;
        }
    }

    public void unbindFc(String cItf) {
        if (cItf.equals("r")) {
            go = null;
        }
    }
}


 
